#include "circleDepProperty.h"

circleDepProperty::circleDepProperty(circleDep *myContainer)
{
    this->myContainer = myContainer;
    setupUi(this);
    //if(this->myContainer->getIsSet() == true)
     //   this->lineEdit->setText(this->myContainer->getLogicConditionalDep());

    connect(this->pushButton, SIGNAL(clicked()), this, SLOT(insert_accept()));
    connect(this->pushButton, SIGNAL(clicked()), this, SLOT(accept()));
    //connect(pushButton_2, SIGNAL(clicked()), this, SLOT(reject()));

}

void circleDepProperty::insert_accept()
{
    QString condition = this->lineEdit->text();
    this->myContainer->setLogicConditionalDep(condition);
    this->myContainer->setIsSet(true);

}
